#macro pageLink(text, pos)

#if(pos == 'prev' && articles.hasPrevPage)
<a class="next" title="" href="${page_prefix}/${articles.prevPage}">${text}</a>
#end

#if(pos == 'next' && articles.hasNextPage)
<a class="next" title="" href="${page_prefix}/${articles.nextPage}">${text}</a>
#end

#end